package com.zyf.springcloud.service;

import com.zyf.springcloud.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "education-user")
public interface OpenFeignEducationUser {
    @GetMapping("/educationUser/selectByName/{username}")
    public User selectByName(@PathVariable("username") String username);
}
